<link rel="stylesheet" href="">
<style>
    .form-inline{
        margin-bottom: 10px;
    }
    body{
        overflow-y: auto;
    }
    .col-md-7 > label{
        margin-top: 5px;
    }
    .col-md-7 > textarea{
        width: 100%;
        margin-top: 7px;
    }
    form > a{
        width: 100px;
        margin-top: 10px;
    }
    #publish{
        /*float: right;*/
        margin-left: 10px;
    }
</style>
{% if NavUl is defined %}
    {{ NavUl }}
{% endif %}
<div class="container-fluid">
    {{ form('Read/modifyArticleData', 'method': 'post', 'class': 'form-group', 'id': 'form_article') }}
        {{ hidden_field('id') }}
    {{ hidden_field('articleStatus') }}
        <div class="form-inline">
            <label for="">文章标题：</label>
            {{ text_field('title', 'class': 'form-control', 'style': 'width:400px;', 'must': 'true') }}
        </div>
        <div class="form-inline">
            <label for="">评论天数：</label>
            {{ text_field('allowCommentDay', 'class': 'form-control', 'style': 'width:200px;','value':0) }}
        </div>
        <div class="form-inline">
            <label for="">文章栏目：</label>
            {{ select_static('columns', columnsArr, 'style': 'width: 300px;') }}
        </div>
        <div class="form-inline">
            <label for="">所属年段：</label>
            <label><input type='checkbox' name='learnstages[]' value="1"> 小学</label>
            <label><input type='checkbox' name='learnstages[]' value="2"> 初中</label>
            <label><input type='checkbox' name='learnstages[]' value="3"> 高中</label>
        </div>
        <div class="form-inline">
            <label for="">文章连载：</label>
            {{ select_static('marker', [], 'style': 'width: 300px;', 'useEmpty': true) }}
        </div>
        <div class="form-inline">
            <label for="">上传封面：</label>
            {{ file_field('cover_img', 'class': 'form-control', 'style': 'width: 300px;') }}
            <label>文件不能大于200k！</label>
            {#<a class="btn btn-default" id="bt_cover_upload">确认</a>#}
        </div>
        <div class="form-inline">
            <label for="">封面地址：</label>
            {{ text_field('coverurl', 'class': 'form-control', 'style': 'width:500px;', 'readonly': 'readonly') }}
        </div>
        <div class="form-inline">
            <label for="">文章类型：</label>
            <select name="articletype" id="articletype" class="form-control" style="width: 300px;">
                <option value="1">普通文章</option>
                <option value="2">图文文章</option>
            </select>
        </div>
        <div class="form-inline">
            <label for="">预定发布：</label>
            {{ date_field('prerelease', 'class': 'form-control', 'style': 'width:300px;') }}
        </div>
        <div>
            <textarea id='contents' name="contents" style="width:100%;"></textarea>
        </div>
        <a id="save" class="btn btn-success" releasestatus="2">保存</a>
        <a id="publish" class="btn btn-danger" releasestatus="1">立即发布</a>
    {{ endform() }}
</div>